#!/usr/bin/env python
#coding=utf-8
import urllib2

def download(url):
	print('Download:',url)
	try:
		html = urllib2.urlopen(url).read()
	except urllib2.URLError as e:
		print('Download error:', e.reason)
		html = None
	return html

if __name__ == '__main__':
	download('http://www.baidu.com')